<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnPermissionsInReviewFeedbackTable extends AbstractMigration
{
    public function up()
    {
        $this->table('review_feedback')
            ->addColumn('permissions', 'enum', ['values' => 'on,off,one,two', 'default' => 'on', 'comment' => 'on 开, off 关,one 一级,two 二级'])
            ->save();
    }

    public function down()
    {
        $this->table('review_feedback')->removeColumn('permissions')->save();
    }
}
